import { service } from "@/utils/request";
import type{pageLimitInterface,commentsList} from '@/utils/interface'
//  ● api/edu/index
class serviceCourse extends service{
  getCourse(){
    return this.get({
      url:'/api/edu/index'
    })
  }
  getCartList(params:pageLimitInterface){
    return this.get({
      url:`/api/edu/course/${params.page}/${params.limit}`
    })
  }
  getCourseDetail(id:string){
    return this.get({
      url:`/api/edu/course/${id}`
    })
  }
  cmmentList(params:commentsList){
    return this.get({
      url:`/api/edu/comment/${params.page}/${params.limit}`,
      data:params
    })
  }
}
export default new serviceCourse();